<?php
class Cellphonezone_Paymentmail_Block_Adminhtml_Info_Grid extends Mage_Adminhtml_Block_Widget_Grid{
   public function __construct()
    {
        parent::__construct();
        $this->setId('allPaymentmailGrid');
        $this->setDefaultSort('paymentemail_id');
        $this->setDefaultDir('DESC');
        $this->setSaveParametersInSession(true);
    }
   
     /**
     * Prepare collection to show in grid
     * @return AW_Imagetest_Block_Adminhtml_Image_Grid
     */
    protected function _prepareCollection()
    {
        $collection = Mage::getModel('paymentmail/paymentmail')
            ->getCollection()
            ;
        $this->setCollection($collection);

        return parent::_prepareCollection();
    }
    /**
     * Prepare grid columns to show
     */
    protected function _prepareColumns()
    {
        $paymentmail = Mage::getModel('paymentmail/paymentmail');

        $this->addColumn('paymentemail_id', array(
            'header'    => $this->__('Id'),
            'align'     => 'left',
            'index'     => 'paymentemail_id',
            'width'     => 50,
            'type'      => 'number'
        ));

        $this->addColumn('order_no', array(
            'header'    => $this->__('Order No'),
            'index'     => 'order_no',
            'type'      => 'text',
        ));
        $this->addColumn('login_email', array(
            'header'    => $this->__('Login Email'),
            'index'     => 'login_email',
            'type'      => 'text',
        ));
        $this->addColumn('form_type', array(
            'header'    => $this->__('payment form'),
            'index'     => 'form_type',
            'type'      => 'text',
        ));
         $this->addColumn('sent_amount', array(
            'header'    => $this->__('Sent Amount'),
            'index'     => 'sent_amount',
            'type'      => 'text',
        ));
        return parent::_prepareColumns();
    }
    
}
